package ca.magex.gps.entity.impl;

import java.util.Date;

import ca.magex.gps.entity.LatLongPoint;
import ca.magex.gps.entity.Trackpoint;

public class TrackpointImpl extends PersistentObject implements Trackpoint {

	private Date time;
	private LatLongPoint point;
	private double altitude;
	private double distance;
	
	public TrackpointImpl() {
		point = new LatLongPointImpl();
	}
	
	public double getAltitude() {
		return altitude;
	}
	
	public void setAltitude(double altitude) {
		this.altitude = altitude;
	}
	
	public double getDistance() {
		return distance;
	}
	
	public void setDistance(double distance) {
		this.distance = distance;
	}
	
	public double getLatitude() {
		return point.getLatitude();
	}
	
	public double getLongitude() {
		return point.getLongitude();
	}
	
	public Date getTime() {
		return time;
	}
	
	public void setTime(Date time) {
		this.time = time;
	}
	
	public LatLongPoint getPoint() {
		return point;
	}
	
	public void setPoint(LatLongPoint point) {
		this.point = point;
	}
	
}
